<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="top.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改商品页面</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
  <!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="#" title="注销">注销</a></div>
  </div>

      <div class="login logns produce">
        <h1 class="blues">拍卖品信息</h1>
        <form action="do/auction/doupdate" method="post" >
          <dl>
            <dd >
              <input value="${count.auctionid}" name="id" hidden="hidden">
              <label>名称：</label>
              <input  name="username" type="text" class="inputh lf" value="${count.auctionname}" />
              <div class="xzkbg spbg lf"></div>
            </dd>
            <dd>
              <label>起拍价：</label>
              <input name="startPrice" type="text" class="inputh lf"      value="${count.auctionstartprice}" />
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>底价：</label>
              <input  name="bottomPrice" type="text" class="inputh lf" value="${count.auctionupset}" />
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>开始时间：</label>
              <input name="startTime" type="text" class="inputh lf" value="<fmt:formatDate value="${count.auctionstarttime}" pattern="yyyy-MM-dd HH:mm:ss"/>" />
              <div class="lf red laba">格式：2011-05-05 12:30:00</div>
            </dd>
            <dd>
              <label>结束时间：</label>
              <input name="endTime" type="text" class="inputh lf" value="<fmt:formatDate value="${count.auctionendtime}" pattern="yyyy-MM-dd HH:mm:ss"/>" />
              <div class="lf red laba">格式：2011-05-05 12:30:00</div>
            </dd>
            <dd class="dds">
              <label>描述：</label>
              <textarea  name="desc" cols="" rows="" class="textarea" >${count.auctiondesc}</textarea>
            </dd>
            <dd>
              <label>修改图片：</label>
              <div class="lf salebd"><a href="#"><img src="${count.auctionpic}" width="100" height="100" /></a></div>
               <input name="img" type="file" class="marg10"  />
            </dd>
            <dd class="hegas">
                <input name="" type="submit" value="保 存" class="spbg buttombg buttombgs f14 lf buttomb" />
                <input name="" type="submit" value="取 消" class="spbg buttombg buttombgs f14 lf buttomb" />
            </dd>
          </dl>
        </form>
    </div>
<!-- main end-->
<!-- footer begin-->

</div>
 <!--footer end-->
 
</div>
<script>
  // function updateImagePreview(event) {
  //   var input = event.target;
  //   var reader = new FileReader();
  //   reader.onload = function () {
  //     var dataURL = reader.result;
  //     var imgElement = document.getElementById('auctionImage');
  //     imgElement.src = dataURL;
  //   };
  //   reader.readAsDataURL(input.files[0]);
  // }
</script>
</body>
</html>
